/* Laboratorio # 2 - Administración de bases de datos
 Jorge Fallas Ramos         402090469
 José Roberto Sánchez       115400070
 Daniel Villalobos Venegas  402110100
 */
package monitorinitdb;

public class Init {

    private String db_name = "";
    private String memory_target = "";
    private String processes = "";
    private String db_block_size = "";
    private String db_recovery_file_dest = "";
    private String db_recovery_file_dest_size = "";
    private String undo_tablespace = "";
    private String control_files = "";
    private String compatible = "";
    private String log_checkpoint_interval = "";
    private String LOG_CHECKPOINT_TIMEOUT = "";

    public Init(String dbn, String mt, String p, String dbbs, String dbrfd,
            String dbrfds, String ut, String cf, String c, String lci, String lct, String ruta) {

        this.db_name = dbn;
        this.memory_target = mt;
        this.processes = p;
        this.db_block_size = dbbs;
        this.db_recovery_file_dest = dbrfd;
        this.db_recovery_file_dest_size = dbrfds;
        this.undo_tablespace = ut;
        this.control_files = cf;
        this.compatible = c;
        this.log_checkpoint_interval = lci;
        this.LOG_CHECKPOINT_TIMEOUT = lct;

        creaInit(ruta);
    }

    public void creaInit(String ruta) {
        escritoraSQL escSQL = new escritoraSQL(ruta);
        escSQL.creaInit(this, "init.ora");
    }

    public String getDb_name() {
        return db_name;
    }

    public String getMemory_target() {
        return memory_target;
    }

    public String getProcesses() {
        return processes;
    }

    public String getDb_block_size() {
        return db_block_size;
    }

    public String getDb_recovery_file_dest() {
        return db_recovery_file_dest;
    }

    public String getDb_recovery_file_dest_size() {
        return db_recovery_file_dest_size;
    }

    public String getUndo_tablespace() {
        return undo_tablespace;
    }

    public String getControl_files() {
        return control_files;
    }

    public String getCompatible() {
        return compatible;
    }

    public String getLog_checkpoint_interval() {
        return log_checkpoint_interval;
    }

    public String getLOG_CHECKPOINT_TIMEOUT() {
        return LOG_CHECKPOINT_TIMEOUT;
    }
}
